package main

func (bc *Blockchain) MineBlock(transactions []*Transaction) {  
	...
	newBlock := NewBlock(transactions, lastHash)
	...
}